package org.jeecg.modules.travel.vo.theme;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.modules.travel.entity.JhTheme;

@Data
public class ThemeListVo {

    /** 主题ID */
    @Schema(description = "id")
    private String id;
    /** 父级ID */
    @Schema(description = "父级ID")
    private String parentId;
    /** 主题编码 */
    @Schema(description = "主题编码")
    private String themeCode;
    /** 主题名称 */
    @Schema(description = "主题名称")
    private String themeName;
    /** 图标 */
    @Schema(description = "图标")
    private String themeIcon;
    /** 层级深度 */
    @Schema(description = "层级深度")
    private Integer themeLevel;
    /** 完整路径 */
    @Schema(description = "完整路径")
    private String themePath;
    /**排序权重*/
    @Schema(description = "排序权重")
    private String sortOrder;

    public ThemeListVo(JhTheme theme) {
        this.id = theme.getId();
        this.parentId = theme.getParentId();
        this.themeCode = theme.getThemeCode();
        this.themeName = theme.getThemeName();
        this.themeIcon = theme.getThemeIcon();
        this.themeLevel = theme.getThemeLevel();
        this.themePath = theme.getThemePath();
        this.sortOrder = theme.getSortOrder();
    }

}
